﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace MoreExtentions
{
    public static partial class Linq
    {
        public static bool Exist<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate)
        {
            return source.Where(predicate).Count() > 0;
        }
    }
}